package com.han.walkman.service;

import com.han.walkman.entity.UserEntity;

import java.util.List;

/**
 * @Author: Hanjiafeng
 * @Date: 2020/6/12
 * @Desc:
 */
public interface UserService {
    /**
     * 添加
     *
     * @param userEntity 用户
     */
    void add(UserEntity userEntity);

    /**
     * 使用实体查询是否存在
     * @param userEntity entity
     * @return list
     */
    List<UserEntity> findAllByEntity(UserEntity userEntity);
}
